<template>
  <div>
    <iframe scrolling="no" id="iframe" :src="swaggerUrl"></iframe>
  </div>
</template>

<script>
  export default {
    name: "Swagger",
    data() {
      return {
        swaggerUrl: process.env.NODE_ENV === "production"
          ? "http://yuqy.club:9999/swagger-ui.html" : "http://localhost:9999/swagger-ui.html"
      }
    },
    mounted() {
      console.log("环境", this.env)
    },
    methods: {}
  }
</script>

<style>
  #iframe {
    width: 99%;
    height: 500vh
  }

</style>
